﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>@Language.Get("订单-翡翠")</title>
        @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link rel="stylesheet" href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get"/>
        <style type="text/css">
			.subnavbar{ display: block;}
			.subnavbar{ background: #fff; padding-bottom: 0 !important;}   
			/*回到顶部*/
			.top_box { width: 50px; height: 50px; position: fixed; bottom: 44px; right: 20px; border: 1px solid #68a32b;  background-color: #ccc; text-align: center; 
			cursor: pointer; padding: 4px; box-sizing: border-box; z-index: 111111111111;}
			.top_box:hover { background-color: #68a32b; color: #fff; }     	
        </style>
    </head>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			             @* 顶部部分start *@
			            <header id="common_header">
			                <div class="menu_icon_box" id="show_menu_btn">
			                	<em class="menu-btn"></em>
			                </div>
			                <div class="menu_icon_box" id="hide_menu_btn">
			                	<em class="colse-nav-btn"></em>
			                </div>			 
			                <h2>@Language.Get("订单-翡翠")</h2>
			            </header>
			            <header id="fiter_header">
		                    <span class="back-btn" id="close_term_btn"></span>
		                    <h2>@Language.Get("筛选")</h2>
               			</header>
			            @* 顶部部分end *@
			
			            @* 引入菜单 *@
			            @Html.Partial("Teammenu")
			              @* 订单商品种类筛选start *@
		            <!--导航栏start-->
						<div class="wrapper wrapper01" id="retr">
							<div class="scroller">
								<ul class="clearfix" id="categories">
									<li><a href="/Team/Order">@Language.Get("裸钻")</a></li>
									<li><a href="/Team/ParcelOrder">@Language.Get("统包")</a></li>
				                     <li><a href="/Team/RingOrder">@Language.Get("成品")</a></li>
				                     <li><a href="/Team/GemOrder">@Language.Get("彩宝")</a></li>
				                     <li><a href="/Team/EmeraldOrder">@Language.Get("翡翠")</a></li>
				                     <li><a href="#">@Language.Get("黄金")</a></li>
								</ul>
							</div>
						</div>
						<!--导航栏end-->
		             @* 订单商品种类筛选end *@
		             
		              <!--二级导航-->
			    <div class="subnavbar orderBar">
			    	 <div class="check_btn_box buttons-row" >
                    <ul class="check_list">
                        <li class="transfer">
                            <button class="search_btn_b ModifyPurchaseUserID" onclick='ModifyPurchaseUserID_Js()' title="@Language.Get("转移采购")" disabled="disabled">@Language.Get("转移")</button>
                        </li>
                        <li class="revise">
                            <button class="search_btn_b ReviseOrders" onclick='ReviseOrders_Js()' title="@Language.Get("退点或打折优惠")" disabled="disabled">@Language.Get("优惠")</button>
                        </li>
                        <li class="arrived" >
                            <button class="search_btn_b ArrivalOrders" onclick="ArrivalOrders_Js()" title="@Language.Get("确认到货，入库")" disabled="disabled">@Language.Get("确认到货")</button>
                        </li>
                        <li class="arrived" >
                            <button class="search_btn_b CancelArrivalOrders" onclick="CancelArrivalOrders_Js()" title="@Language.Get("取消到货")" disabled="disabled">@Language.Get("取消到货")</button>
                        </li>
                        <li class="pay" >
                            <button class="search_btn_b ReceiptOrders" title="@Language.Get("支付买货款")"  disabled="disabled">@Language.Get("付款")</button> <!-- onclick='ReceiptOrders_Js()' -->
                        </li>
                        @*<li class="exchange" style="display: none;">
                            <button class="search_btn_b ExchangeOrders" onclick='ExchangeOrders_Js()' title="@Language.Get("修改采购汇率")" disabled="disabled">@Language.Get("采购汇率")</button>
                        </li>*@
                        <li class="freight" >
                            <button class="search_btn_b ModFreight" onclick='ModFreight_Js()' title="@Language.Get("修改运费")" disabled="disabled">@Language.Get("运费")</button>
                        </li>
                        <li class="invalid" >
                            <button class="search_btn_b CancelOrders" onclick='CancelOrders_Js()' title="@Language.Get("订单作废")" disabled="disabled">@Language.Get("作废")</button>
                        </li>
                        <li class="prepare" >
                            <button class="search_btn_b AddShip" onclick="AddShip_Js();" title="@Language.Get("预先制作出货单")" disabled="disabled">@Language.Get("制单")</button>
                        </li>
                        <li class="ship" >
                            <button class="search_btn_b EditShip" onclick='EditShip_Js()' title="@Language.Get("订单出货")" disabled="disabled">@Language.Get("出货")</button><!--EditShip 在ordertablecheck.js -->
                        </li>
                        <!--<li class="print" >
                            <button class="search_btn_b PrintShip" onclick='PrintShip()' title="打印出货单" disabled="disabled">打单</button>
                        </li>-->
                        <li class="receipt" >
                            <button class="search_btn_b AddBill" title="@Language.Get("支付卖货款")" onclick='PayOrders_Js()' disabled="disabled">@Language.Get("收款")</button> <!-- onclick='PayOrders_Js()' -->
                        </li>
                        <li class="stock" >
                            <button class="search_btn_b StockOrders"  title="@Language.Get("同一客户订单自留成现货")" disabled="disabled" onclick='StockOrders_Js()'>@Language.Get("自留变现")</button> <!--onclick='StockOrders_Js()' -->
                        </li>
                        <li class="back" >
                            <button class="search_btn_b ReturnOrders" title="@Language.Get("同一客户订单退回供应商")" disabled="disabled" onclick='ReturnOrders_Js()'>@Language.Get("退回供应商")</button><!--onclick='ReturnOrders_Js()' -->
                        </li>
                        <li class="del" >
                            <button class="search_btn_b DelOrders" onclick='DelOrders_Js()' title="@Language.Get("删除已作废订单")" disabled="disabled">@Language.Get("删除")</button>
                        </li>
                        <li>
                            <button class="search_btn_b RemarkOrder" onclick='RemarkOrder_Js()' title="@Language.Get("客户/业务/采购/物流备注")" disabled="disabled">@Language.Get("备注")</button>
                        </li>
                        <li><span id="order_term_btn" class="add_blue">@Language.Get("筛选")</span> </li>
                    </ul> 
                    
                </div>
                <div class="choose_status">@Language.Get("当前选择订单状态为")：<span id="choose_orderstatus"></span></div>
			    </div>
			    	
		             
					</div>
			   </div> 
			    
			    
			   
			    <!--工具栏start-->
						<div class="toolbar">
							<div class="toolbar-inner order-handle">
				            	<div>
				                 	<label class="choose_lable"><span class="checkbox" id="checkbox_check_all"></span><span class="label_name">@Language.Get("全选")</span></label>
				                </div>
				                <div class="order-choose-detail">
				                    <span class="total-price CurrentRMB" >@Language.Get("总价")￥：<b id="check-total-price">0</b></span>
				            		<span class="total-price CurrentUSD" >@Language.Get("总价")$：<b id="check-total-price-usd">0</b></span>
				                </div>
				            </div>
						</div>
						<!--工具栏end-->
						
						    
						
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
						<div class="page-content" id="app_no_header">
							<!--内容区start-->  
			             @* 订单列start *@
			             <div id="order" class="team_order">
			                 <div class="order-list" style="display: block;">
			                 	
			                 	<ol id="order_list">
			                 		
			                 	</ol>
			                 	<!--<div class="cartCount_box orderBottom_box">
				        </div>-->
				        
				        
							</div>
							
							</div>
		                 @* 订单列end *@       
		                <!--内容区end-->
				            
        			 </div>
		       		

        
		          	</div>
		       </div>
		       
		@*弹框start*@
		
		<!-- 订单转移start --->
		<div class="popup ModifyPurchaseUserID_box">
        <!--<div class="pop_box_bg ModifyPurchaseUserID_box">-->
            <!-- w1  -->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("转移订单")</h5>
                <form class="form-inline _transfer" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
                	<div>
	                    <label class="checkbox-inline">@Language.Get("选择采购")：</label>
	                    <select class="form-control list_search" id="_purchasesUserIDs" name="PurchasesUserID"></select>
                    </div>
                    <div class="confirm">
	                    <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
	                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />                 <!-- onclick="ModifyPurchaseUserID();" -->
                	</div>
                </form>
            </div>
        </div>
        <!-- 订单转移end --->
		
		<!-- 批量调价start-->
		<div class="popup ReviseOrders_box">
        <!--<div class="pop_box_bg ReviseOrders_box">-->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("批量优惠")</h5>
                <form class="form-inline _revise" style="padding: 5px 5px 5px 30px;" method="post" id="_revise">
                    <div class="form-group">
                        <label for="SalesExchangerate">@Language.Get("销售汇率")：</label>
                        <input type="text" class="form-control" id="_salesExchangerate" name="SalesExchangerate" placeholder="@Language.Get("必填")" />
                    </div>
                    <div class="form-group" style="display: none;">
                       <input type="radio" name="mode" value="0"  checked="checked" id="Discount_check" onchange="DiscountEvent()" />@Language.Get("优惠折扣")
                    </div>
                    <div class="form-group">
                        <label for="Discount">@Language.Get("优惠折扣")：</label>
                        <input type="text" class="form-control" id="_discount" value="1" name="Discount" placeholder="@Language.Get("打85折输入0.85")" />
                    </div>
                    <div class="confirm">
		            	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" name="cancel_btn"/>
		            	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>              
		            	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" /> 
		            </div>                    <!-- onclick="ReviseOrders();" -->
                </form>
            </div>
        </div>
        <!--批量调价end -->
		
		<!-- 订单到货start --->
		
		<div class="popup ArrivalOrders_box">
		<!--<div class="pop_box_bg ArrivalOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("确认到货")</h5>
		        <form class="form-inline _arrival" style="padding: 5px 5px 5px 30px;" id="_arrival" method="post">
		            <div class="form-group" id="arrival_box">
		                <label for="Arrivaltime">@Language.Get("到货日期")：</label>
		                <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="Arrivaltime" placeholder="@Language.Get("选择日期")" readonly id="_arrivaltime_" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
		            </div>
		            <!-- onclick="ArrivalOrders()"-->
		            <div class="confirm">
			            <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />               <!-- onclick="ModifyPurchaseUserID();" -->
		            </div>
		        </form>
		    </div>
		</div>
		<!-- 订单到货end --->
		
		<!-- 付款start-->
		<div class="popup ReceiptOrders_box">
		<!--<div class="pop_box_bg ReceiptOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("付款")</h5>
		        <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_receipt">
		            <div>
		                <label>@Language.Get("应付金额")：</label>
		                <label class="checkbox-inline">
		                    <b class="check_third" style="font-weight: bold; color: red;">0</b>$ @Language.Get("或") 
		                    <b class="check_four" style="font-weight: bold; color: red;">0</b>￥
		                </label>
		            </div>
		            <br />
		            <div>
		                <label for="BankID">@Language.Get("付款账户")：</label>
		                <select id="_receiptBankID" class="form-control list_search" name="BankID" required="required"></select>
		                <a title="@Language.Get("部分付款")" onclick="PayAmountNum();">@Language.Get("部分付")</a>
		            </div>
		            <br />
		            <div class="receiptNum">
		                <label for="ReceiptAmount">@Language.Get("部分金额")：</label>
		                <label class="checkbox-inline">
		                    <input type="number" required="required" class="form-control" name="ReceiptAmount" placeholder="@Language.Get("付款金额(正数)")" id="_receiptAmount" disabled/>
		                </label>
		            </div>

		            <br />
		            	<label for="ArrivalTime">@Language.Get("付款日期")：</label>
		            	 <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("选择日期")" readonly id="receiptarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
		                <!--<input type="date" class="date_input time_input" id="receiptarrivalTime" required="required" name="ArrivalTime" />-->
		            <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
		            	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
		            	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" /><!--onclick="ReceiptOrders()"-->
		                 </div>
		            <em>@Language.Get("默认'全部付'，如需'部分付'，请点击【部分付】- 输入【部分金额】，'部分付'仅允许选中1条订单")</em>
		        </form>
		    </div>
		</div>
		<!--付款end --> 
		
			 <!-- 单个调价start-->
			 <div class="popup ReviseAnOrder_box">
        <!--<div class="pop_box_bg ReviseAnOrder_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("修改售价")</h5>
                <form class="form-inline _reviseOrder" method="post" id="_reviseOrder">
                    <div class="form-group" style="display: none">
                        <label for="OrderID">@Language.Get("销售汇率")：</label>
                        <input type="text" class="form-control" id="_anorderid" name="OrderID" placeholder="@Language.Get("订单号")" />
                    </div>
                    <div class="form-group exchangeRate">
                        <label for="SalesExchangerate">@Language.Get("销售汇率")：</label>
                        <input type="text" class="form-control" id="_salesRate" name="SalesExchangerate" placeholder="@Language.Get("必填")" />
                    </div>
                    <!--<div class="form-group" style="display: none;">
                       <input type="radio" name="model" value="0" checked="checked"/>￥/Pcs
                    </div>-->
                    <div class="form-group CurrentRMB" id="ConfirmPrice_box_">
                        <label for="ConfirmPrice">￥/Pcs：</label>
                        <input type="text" class="form-control" id="_confirmPrice" name="ConfirmPrice" placeholder="@Language.Get("人民币总价")"/>
                    </div>
                    <div class="form-group CurrentUSD" id="BEFPrice_box_">
                        <label for="BEFPrice_box">$/Pcs：</label>
                        <input type="text" class="form-control" id="_BEFPrice" name="BEFPrice_box" placeholder="@Language.Get("美币总价")" />
                    </div>
                    <div class="confirm">
	                    <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" name="qx_"/>
	                    <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;"/>
	                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />                    <!-- onclick="ReviseAnOrder();" -->
	                    <b id="_reviseanorderResult" style="color: red"></b>
                    </div>
                </form>
            </div>
        </div>
        <!--单个调价end -->
			
        
        <!-- 订单备注start-->
         <div class="popup RemarkOrder_box">
        <!--<div class="pop_box_bg RemarkOrder_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("备注订单")</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                	<div class="form-group clearfix">
                		<label for="Remarks" class="Remark-textarea">@Language.Get("客户备注")：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_remarks" placeholder="@Language.Get("客户说点啥？")" name="Remarks"></textarea>
                	</div>
					<div class="form-group clearfix">
                   		 <label for="SalesRemarks" class="Remark-textarea">@Language.Get("业务备注")：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_salesRemarks" placeholder="@Language.Get("业务说点啥？")" name="SalesRemarks"></textarea>
					</div>
					<div class="form-group clearfix">
                    	<label for="PurchaseRemarks" class="Remark-textarea">@Language.Get("采购备注")：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_purchaseRemarks" placeholder="@Language.Get("采购说点啥？")" name="PurchaseRemarks"></textarea>
                   </div>
                    <div class="form-group clearfix">
                    	<label for="GoodsRemark" class="Remark-textarea">@Language.Get("物流备注")：</label>
                        <textarea class="form-control form-text" rows="3" cols="50" id="_goodsRemark" placeholder="@Language.Get("物流说点啥？")" name="GoodsRemark"></textarea>
                    </div>
                    <div class="confirm clearfix">
                    	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="margin-left: 70px;" />
                    	<input type="button" class="btn btn-danger supbtn" value="@Language.Get("确定")" onclick="RemarkOrder();" /><br />
                    </div>
                    <em>@Language.Get("备注为追加")</em>
                </form>
            </div>
        </div>
        <!--订单备注end -->

		<!-- 订单作废start-->
		<div class="popup CancelOrders_box">
		<!--<div class="pop_box_bg CancelOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("作废订单")</h5>
		        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_invalid">
		            <div class="form-group clearfix">
		            	<label for="SalesRemarks" class="purchase-textarea">@Language.Get("业务备注")：</label>
		                <textarea class="form-control form-text" required="required" rows="3" cols="40" id="_cancelRemarks" placeholder="@Language.Get("详细描述作废原因")" name="SalesRemarks" style="height: 110px;"></textarea>
		            </div>
		            <!-- onclick="CancelOrders()"-->
		            <div class="confirm">
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"/ style="display: none;">
			            <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
		            </div>
		        </form>
		    </div>
		</div>
		<!--订单作废end -->
        
         <!-- 订单自留start-->
         <div class="popup StockOrders_box">
		<!--<div class="pop_box_bg StockOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("自留变现")</h5>
		        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_stock">
		        	
		            <label class="checkbox-inline" style="display: none;">
		                <b id="_stockCustomerID"></b>
		            </label>
		            <div>
		           	 	<label for="SalesRemarks" class="purchase-textarea">@Language.Get("备注")：</label>
		                <textarea class="form-text" required="required" rows="3" cols="55" id="_stockRemarks" placeholder="@Language.Get("详细描述自留原因")" name="SalesRemarks" style="height: 110px;"></textarea>
		            </div>
		            <!--onclick="StockOrders()"-->
		            <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
		             	<!--<input type="reset" class="btn btn-danger supbtn" value="重置" style="display: none;"/>-->
		            	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/> 
		            </div>   
		          
		                <!-- onclick="StockOrders();" -->
		            <em>@Language.Get("自留")"<b style="color:red;font-weight:bold">已收")</b>"@Language.Get("订单")，<b style="color:red;font-weight:bold">@Language.Get("已收金额原路退回客户余额")</b>。</em>
		        </form>
		    </div>
		</div>
		<!--订单自留end -->

		 <!-- 退回供应商start-->
		 <div class="popup ReturnOrders_box">
		<!--<div class="pop_box_bg ReturnOrders_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("退回供应商")</h5>
		        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_return">
		            <label class="checkbox-inline" style="display:none;">
		                <b id="_returnCustomerID"></b>
		            </label>
		            <div>
		            	<label for="SalesRemarks" class="purchase-textarea">@Language.Get("备注")：</label>
		                <textarea class="form-control form-text" rows="3" cols="45" id="_returnRemarks" placeholder="@Language.Get("详细描述退货回供应商原因")" name="SalesRemarks" style="height: 110px;"></textarea>
		            </div>
		            <!--onclick="ReturnOrders()"-->
		            <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" style="display: none;"/>
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"/>
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/> 
		            </div>   
		            <em>@Language.Get("退回")"<b style="color:red;font-weight:bold">@Language.Get("已收")</b>"@Language.Get("订单")，<b style="color:red;font-weight:bold">@Language.Get("已收金额原路退回客户余额")</b>。</em>
		        </form>
		    </div>
		</div>
		<!--退回供应商end -->     

        <!-- 订单兑率start-->
        <div class="popup ExchangeOrders_box">
        <!--<div class="pop_box_bg ExchangeOrders_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("修改采购汇率")</h5>
                <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_exchange">
                    <div>
                        <label for="PurchaseExchangerate">@Language.Get("采购汇率")：</label>
                        <input type="number" value="" id="_purchaseRate" class="form-control list_search" name="PurchaseExchangerate"/>
                    </div>
                    <div class="confirm">    
		            	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>  <!-- onclick="ExchangeOrders()"-->
		            </div>                    <!-- onclick="ExchangeOrders();" -->
                </form>
            </div>
        </div>
        <!--订单兑率end --> 
        
        <!-- 收款start-->
        <div class="popup PayOrders_box">
		<!--<div class="pop_box_bg PayOrders_box">-->
		    <div class="pop" >
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("收款")</h5>
		        <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_pay">
		            <label class="checkbox-inline" style="display:none;">
		                <b id="_payCustID"></b>
		            </label>
		            <div>
		                <label>@Language.Get("应收金额")：</label>
                        <label class="checkbox-inline">
                            <b class="check_first" style="font-weight: bold; color: red;">0</b>￥ 
                        </label>
		            </div>
		            <div>
		                <label for="Currency">@Language.Get("客户余额")：</label>
		                <select class="form-control list_search" name="Currency" id="_currency">
		                    <option value="1" selected="selected">@Language.Get("人民币")</option>
		                    <!--<option value="2">美金</option>-->
		                </select>
		            </div>
		            <!-- onclick="PayOrders()"-->
		             <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
		            </div>
		        </form>
		    </div>
		</div>
		<!--收款end -->

        <!-- 收供应商退款start-->
        <div class="popup PayBackOrders_box">
        <!--<div class="pop_box_bg PayBackOrders_box">-->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("收款")</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_payback">  <!--  _cancel -->
                    <div>
                        <label>@Language.Get("应收金额")：</label>
                        <label class="checkbox-inline">
                            <b class="check_third" style="font-weight: bold; color: red;">0</b>￥ 
                        </label>
                    </div>
                    <div>
                        <label for="BankID">@Language.Get("收款账户")：</label>
                        <select id="_paybackBankID" class="form-control list_search" name="BankID"></select>
                    </div>
                    <div>
                        <label for="PayBackAmount">@Language.Get("实收金额")：</label>
                        <label class="checkbox-inline">
                            <input type="number" class="form-control" name="PayBackAmount" placeholder="@Language.Get("总金额")" id="_paybackAmount"/>
                        </label>
                    </div>
                    <div>
                    	<label for="ArrivalTime">@Language.Get("收款日期")：</label>
                    	 <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("收款日期")" readonly id="paybackarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                    	 <!--<input type="text" class="date_input time_input" id="paybackarrivalTime" name="ArrivalTime" />-->
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
		            </div>
                </form>
            </div>
        </div>
        <!--收供应商退款end -->

       
        <!--申请充值start-->
        <div class="popup Balance_box">
        <!--<div class="pop_box_bg Balance_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("申请充值人民币")</h5>
                <form class="form-inline _balance" style="padding: 5px 5px 5px 30px;" method="post">
                    <label class="checkbox-inline" style="display:none;">
                        <input class="form-control" type="text" name="CustomerID" id="_custID" placeholder="@Language.Get("客户ID")" readonly="readonly" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">@Language.Get("客户名字")：</label>
                        <input class="form-control" type="text" name="RealName" id="_realName" placeholder="@Language.Get("客户名字")" readonly="readonly" />
                    </div>
                    <div class="form-group">
                    	<label for="Balance">@Language.Get("当前余额")：</label>
                        <input class="form-control" type="text" name="Balance" id="_bal" placeholder="@Language.Get("客户当前余额")" readonly="readonly" />
                    </div>

                    <div class="form-group">
                        <b style="vertical-align: top;">@Language.Get("银行账户")：</b>
                        <div class="account-radio" id="_bankID1"></div>
                    </div>
                    <div class="form-group">
                        <label for="Currency">@Language.Get("结算币种")：</label>
                        <input type="radio" name="Currency" value="1" checked="checked" style="width: 30px;"/>@Language.Get("人民币")
                    </div>
                    <div class="form-group">
                        <label for="Abstract">@Language.Get("操作类型")：</label>
                        <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>@Language.Get("客户充值")
                    </div> 
                    <div class="form-group">
                    	<label for="Amount"><b style="color:red;">@Language.Get("交易金额")：</b></label>
                        <input class="form-control" type="number" name="Amount" id="camount" placeholder="@Language.Get("交易金额")" />
                    </div>
                    <div class="form-group">
                    	<label for="ArrivalTime">@Language.Get("到款日期")：</label>
                    	 <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("到款日期")" readonly id="carrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                        <!--<input type="text" class="date_input time_input" id="carrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">@Language.Get("申请备注")：</label>
                        <textarea class="form-text" rows="2" cols="40" id="cremarks" placeholder="" name="Remarks"></textarea>
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
		            </div>
                </form>
            </div>
        </div>
        <!--申请充值end -->


        <!--申请美金充值start-->
        <div class="popup USDBalance_box">
        <!--<div class="pop_box_bg USDBalance_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("申请充值美金")</h5>
                <form class="form-inline _usdbalance" style="padding: 5px 5px 5px 30px;" method="post">
                    <label class="checkbox-inline" style="display:none;">
                        <input class="form-control" type="text" name="CustomerID" id="_cuID" placeholder="@Language.Get("客户ID")" readonly="readonly" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">@Language.Get("客户名字")：</label>
                        <input class="form-control" type="text" name="RealName" id="_reName" placeholder="@Language.Get("客户名字")" readonly="readonly" />
                    </div>
                    <div class="form-group">
                    	<label for="USDBalance">@Language.Get("当前余额")：</label>
                        <input class="form-control" type="text" name="USDBalance" id="_usdbal" placeholder="@Language.Get("客户当前余额")" readonly="readonly" />
                    </div>
                    <div class="form-group">
                        <b style="vertical-align: top;">@Language.Get("银行账户")：</b>
                        <div class="account-radio" id="_usdbankID"></div>
                    </div>
                    <div class="form-group">
                        <label for="Currency">@Language.Get("结算币种")：</label>
                        <input type="radio" name="Currency" value="2" checked="checked" id="_usd" style="width: 30px;"/>@Language.Get("美金")
                    </div>
                    <div class="form-group">
                        <label for="Abstract">@Language.Get("操作类型")：</label>
                        <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>@Language.Get("客户充值")
                    </div>
                    <div class="form-group">
                    	<label for="Amount"><b style="color:red;">@Language.Get("交易金额")：</b></label>
                        <input class="form-control" type="number" name="Amount" id="cusdamount" placeholder="@Language.Get("交易金额")" />
                    </div>
                    <div class="form-group">
                    	<label for="ArrivalTime">@Language.Get("到款日期")：</label>
                    	<div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("到款日期")" readonly id="cusdarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                        <!--<input type="text" class="date_input time_input" id="cusdarrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">@Language.Get("申请备注")：</label>
                        <textarea class="form-control form-text" rows="3" cols="40" id="cusdremarks" placeholder="" name="Remarks" ></textarea>
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
		            </div>     <!-- onclick="ApplyFlow();" -->
                </form>
            </div>
        </div>
        <!--申请美金充值end -->
        
         <!-- 修改运费start-->
         <div class="popup ModFreight_box">
		<!--<div class="pop_box_bg ModFreight_box">-->
		    <div class="pop">
		        <span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("修改运费")</h5>
		        <form class="form-inline _frei" style="padding: 5px 5px 5px 30px;" method="post" id="_frei">
		            <div class="form-group">
		                <label for="Freight">@Language.Get("运费")：</label>
		                <input class="form-control" required="required" type="text" id="_freight" name="Freight" placeholder="@Language.Get("实际运费")"/>
		            </div>
		          	<div class="confirm">  
		          		<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
		            	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
		            	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>  <!-- onclick="ModFreight()"-->
		            </div>
		        </form>
		    </div>
		</div>
		<!--修改运费end -->
        
      <!-- 确定删除start-->
       <div class="popup DelOrders_box">
        <!--<div class="pop_box_bg DelOrders_box">-->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("删除订单")</h5>
                <form class="form-inline" method="post" id="">
                    <div class="form-group" style="display: none">
                        <label for="OrderID" class="checkbox-inline">@Language.Get("订单IDs")：</label>
                        <input type="text" class="form-control" id="_ids">
                    </div>
                    <div class="form-group" style="padding-left: 15px;">
                    	<div>@Language.Get("删除后无法恢复，确定要删除订单吗？")</div>
                    </div>
                    <div class="confirm" style="margin-left: 10%;"> 
	                    <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")"/>
	                    <!-- cancel为本页的css -->
	                    <button class="btn btn-danger supbtn btn_dis" onclick="DelOrders();">@Language.Get("确定")</button><br /> <!--disabled -->
                    </div>
                    <em style="padding-left: 15px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Language.Get("提醒：确定删除前，建议您导出一份订单作为备用")；<b style="color:red">仅供管理员使用")</b></em>
            	</form>
            </div>
        </div>
        <!--确定删除end -->

        <!--删除结果start -->
        <div class="pop_box_bg delorders">
            <div class="pop">
                <span class="colse_popbox">X</span>
                <h5>@Language.Get("删除结果")</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                    <em>@Language.Get("成功")：<b id="_succ"></b></em><br />
                    <em>@Language.Get("失败")：<b id="_fail"></b></em><br />
                    <br />
                    <em>@Language.Get("失败原因")：<b>@Language.Get("订单不存在")</b></em>
                </form>
            </div>
        </div>
        <!-- 删除结果end-->
		
		<!-- 出货start-->
		<div class="popup EditShip_box">
		<!--<div class="pop_box_bg EditShip_box">-->
		    <div class="pop">
		    	<span class="colse_popbox close-popup">X</span>
		        <h5>@Language.Get("订单出货")</h5>
		        <form class="form-inline _ship" style="padding: 5px 5px 5px 30px;" method="post" id="_ship">
		        	<div>
		            	<label for="ShipRemarks" class="Remark-textarea">@Language.Get("出货审核")：</label>
		                <textarea class="form-control form-text" rows="3" cols="60" required="required" id="_shipRemarks" placeholder="@Language.Get("审核结果和审核人签字")" name="ShipRemarks"></textarea>
		            </div>
		            <div class="confirm">    
		            <!--onclick="EditShip()"-->
			            <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" />
			            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display: none;"/>
			            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>   
		             </div>
		            <em>@Language.Get("为了降低风险，出货前请了解客户欠款")</em>
		        </form>
		    </div>
		</div>
		<!--出货end --> 

        <!-- 联系方式start-->
        <div class="popup Contact_box">
        <!--<div class="pop_box_bg Contact_box">-->
            <div class="pop">
				<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("联系方式")</h5>
                <form class="form-inline contact-form" style="padding: 5px 5px 30px 30px;">
                	<div class="form-group">
                    	<label for="ShortName">@Language.Get("简称")：</label>
                        <input class="form-control" type="text" name="ShortName" id="_shortName" placeholder="@Language.Get("简称")" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Company">@Language.Get("全称")：</label>
                    	<input class="form-control" type="text" name="Company" id="_company" placeholder="@Language.Get("全称")" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Name">@Language.Get("联系人")：</label>
                        <input class="form-control" type="text" name="Name" id="_name" placeholder="Name" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="QQ">QQ：</label>
                        <input class="form-control" type="text" name="QQ" id="_qq" placeholder="QQ" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Telephone">@Language.Get("固话")：</label>
                        <input class="form-control" type="text" name="Telephone" id="_telephone" placeholder="@Language.Get("固话")" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="WeChat">@Language.Get("微信")：</label>
                        <input class="form-control" type="text" name="WeChat" id="_wechat" placeholder="WeChat" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Email">@Language.Get("邮箱")：</label>
                        <input class="form-control" type="text" name="Email" id="_email" placeholder="Email" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Skype">Skype：</label>
                        <input class="form-control" type="text" name="Skype" id="_skype" placeholder="Skype" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="MobilePhone">@Language.Get("手机")：</label>
                        <input class="form-control" type="text" name="MobilePhone" id="_mobilephone" placeholder="MobilePhone" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="Website">网站")：</label>
                        <input class="form-control" type="text" name="Website" id="_website" placeholder="@Language.Get("网站")" disabled="disabled"/>
                    </div>
                    <div class="form-group">
                    	<label for="RapID">RapID：</label>
                        <input class="form-control" type="text" name="RapID" id="_rapid" placeholder="RapID" disabled="disabled"/>
                    </div>
                    <div class="form-group" style="margin-left: 0;">
                    	<label for="Address">@Language.Get("地址")：</label>
                        <input class="form-control" type="text" name="Address" id="_address" placeholder="Address" disabled="disabled"/>
                    </div>
                </form>
            </div>
        </div>
        <!--联系方式end -->

        <!-- 充值start-->
        <div class="popup ReCharge_box">
        <!--<div class="pop_box_bg ReCharge_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("客户充值")</h5>
                <form class="form-inline _re" style="padding: 5px 5px 5px 30px;" method="post" id="_re">
                    <label class="checkbox-inline" style="display: none">
                        <input class="form-control" type="text" name="CustomerID" id="_customerid" placeholder="@Language.Get("客户号")" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">客户名字")：</label>
                        <input class="form-control" type="text" name="RealName" id="RealName" readonly="readonly" />                   	
                    </div>
					<div class="form-group">
                    	<label for="Balance">@Language.Get("当前余额")：</label>
                        <input class="form-control" type="text" name="Balance" id="Balance" readonly="readonly" />
                    </div>
                    <div class="form-group">
	                    <label for="PaymentModel">@Language.Get("付款账户")：</label>
	                    <div class="check_radio_box">
	                    	<label for="Alipay">
	                    		 <input id="Alipay" type="radio" name="PaymentModel" value="1" checked="checked"/>@Language.Get("支付宝")
	                    	</label>
	                       	<label for="WeChat">
	                        	<input id="WeChat" type="radio" name="PaymentModel" value="2"/>@Language.Get("微信")
	                       </label>
	                       	<label for="china_bank">
	                        	<input id="china_bank" type="radio" name="PaymentModel" value="3" />@Language.Get("中行")
	                       </label>
	                       <label for="agricultural_bank">
	                       		<input id="agricultural_bank" type="radio" name="PaymentModel" value="4" />农行")
	                       </label>
	                        <label for="ICBC">
	                        	<input id="ICBC" type="radio" name="PaymentModel" value="5" />@Language.Get("工行")
	                        </label>
	                        <label for="ccb">
	                        	<input id="ccb" type="radio" name="PaymentModel" value="6" />@Language.Get("建行")
	                        </label>
	                        <label for="livelihood_bank">
	                        	<input id="livelihood_bank" type="radio" name="PaymentModel" value="7" />@Language.Get("民生")
	                        </label>
	                        <label for="Safety_bank">
	                        	<input id="Safety_bank" type="radio" name="PaymentModel" value="8" />@Language.Get("平安")
	                        </label>
	                        <label for="Discount_bank">
	                        	<input id="Discount_bank" type="radio" name="PaymentModel" value="9" />@Language.Get("优惠额")
	                        </label>
	                        <label for="Service_Charge">
	                        	<input id="Service_Charge" type="radio" name="PaymentModel" value="10" />@Language.Get("手续费")
	                        </label>
	                        <label for="cash">
	                        	<input id="cash" type="radio" name="PaymentModel" value="11" />@Language.Get("现金")  <!-- 11-11 -->
	                        </label>
	                        
	                    </div>
                    </div>
                    <div class="form-group">
                        <label for="OperationModel">@Language.Get("充值操作")：</label>
                        <select class="form-control" name="OperationModel" id="OperationModel">
                            <option value="0" selected="selected">@Language.Get("申请充值")</option>
                            <option value="1" id="_direct_opt">@Language.Get("直接充值")</option> <!-- 默认隐藏 -->
                        </select>
                    </div>
                    <div class="form-group">
                    	<label for="AmountOfMoney">@Language.Get("充值金额")：</label>
                        <input class="form-control" type="number" name="AmountOfMoney" id="AmountOfMoney" placeholder="@Language.Get("本次充值金额")" />
                    </div>
                    <div class="form-group">
                   		 <label for="AdddateTime">@Language.Get("打款时间")：</label>
                        <input type="text" class="date_input time_input" id="AdddateTime" placeholder="@Language.Get("打款时间")" name="AdddateTime" />
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">@Language.Get("充值备注")：</label>
                        <textarea class="form-control form-text" rows="4" cols="40" id="Remarks" placeholder="@Language.Get("备注")" name="Remarks"></textarea>
                    </div>
                    <div class="confirm">
                    	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"/>
                    	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
                    	<!-- onclick="AddCharge();" -->
                    </div>                   
                </form>
            </div>
        </div>
        <!--充值end -->

        <!--充值结果start 9-26 -->
        <div class="popup addcharge_box">
        <!--<div class="pop_box_bg addcharge_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("充值详情")</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                    <em><b id="_add_result"></b></em>
                    <br />
                    <input type="button" class="btn btn-danger supbtn" value="@Language.Get("继续充值")" style="margin-left: 70px;" onclick="choice();" />
                    <input type="button" class="btn btn-danger supbtn" value="@Language.Get("查看充值")" onclick="ViewCharge();" />
                </form>
            </div>
        </div>
        <!-- 充值结果end-->       
        
        <!-- 自留手动回库start -->
        <div class="popup BackDia_box">
        <!--<div class="pop_box_bg BackDia_box">-->
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("回翡翠库")</h5>
                <form class="form-inline _backdia" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group" style="display:none;">
                        <label for="OrderID">@Language.Get("订单号")：</label>
                        <input type="text" class="form-control" id="_orID" placeholder="@Language.Get("订单号")" name="OrderID">
                    </div>
                    <div class="form-group" style="display:none;">
                        <label for="InventoryID">@Language.Get("库存号")：</label>
                        <input type="text" class="form-control" id="_invID" name="InventoryID">
                    </div>
						<div class="form-group">
							<label class="OriginSN ">@Language.Get("货号")</label>
							<input type="text" class="form-control" id="originSN" maxlength="20" placeholder="@Language.Get("货号")" name="OriginSN">
						</div>
						<div class="form-group">
							<label for="Category">@Language.Get("主石类型")</label>
							<input type="text" class="form-control" id="category" placeholder="@Language.Get("主石类型")" name="Category" disabled="disabled">
						</div>	
						<div class="form-group">
							<label for="Name">@Language.Get("名称")</label>
		                 	<input type="text" class="form-control" id="name" placeholder="@Language.Get("名称")" name="Name" disabled="disabled">
						</div>
						
						<div class="form-group">
							<label for="Color">@Language.Get("颜色")</label>
							<input type="text" class="form-control" id="color" placeholder="@Language.Get("颜色")" name="Color">
						</div>
						<div class="form-group">
							<label for="CertType">@Language.Get("证书")</label>
							<input type="text" class="form-control" id="certType" placeholder="@Language.Get("证书")" name="CertType">
						</div>
					     <div class="form-group">
							<label for="CertNo">@Language.Get("证书号")</label>
							<input type="text" class="form-control" id="certNo" placeholder="@Language.Get("证书号")" name="CertNo">
						</div>	
						
						<div class="form-group">
							<label for="Type">@Language.Get("类型")</label>
							<select class="form-control" name="Type" id="type">
		                            <option value="" selected="selected">@Language.Get("类型")</option>
		                            <option value="1">@Language.Get("手镯")</option>
		                        	<option value="2">@Language.Get("挂件")</option>
		                        	<option value="3">@Language.Get("裸石角料")</option>
		                        	<option value="4">@Language.Get("摆件")</option>
		                        	<option value="5">@Language.Get("个性")</option>
		                        	<option value="6">@Language.Get("把件")</option>
		                        	<option value="7">@Language.Get("原石")</option>
		                    </select>
						</div>
						<div class="form-group">
							<label for="Type2">@Language.Get("类别细分")</label>
							<input type="text" class="form-control" id="type2" placeholder="@Language.Get("类别细分")" name="Type2">
						</div>
						<div class="form-group">
							<label for="Place">@Language.Get("所在地")</label>
	                        <input type="text" class="form-control" id="place" placeholder="@Language.Get("所在地")" name="Place">
						</div>
						
						<div class="form-group">
							<label class="Measurement">@Language.Get("尺寸")</label>
							<input type="text" class="form-control" id="measurement" placeholder="@Language.Get("尺寸")" name="Measurement">
						</div>
						<div class="form-group">
							<label for="Supplier">@Language.Get("供应商")</label>
							<input type="text" class="form-control" id="supplier" placeholder="@Language.Get("供应商")" name="Supplier" readonly="readonly">
						</div>
						<div class="form-group" style="display: none;">
							<label for="Weight">@Language.Get("重量")</label>
							<input type="number" class="form-control" id="weight" placeholder="@Language.Get("重量")" name="" readonly="readonly">
						</div>
						<div class="form-group">
							<label for="Texture">@Language.Get("种地")</label>
							<select class="form-control" name="Texture" id="texture">
									<option value="1">@Language.Get("冰种")</option>
		                        	<option value="2">@Language.Get("玻璃种")</option>
		                        	<option value="3">@Language.Get("冰糯种")</option>
		                        	<option value="4">@Language.Get("芙蓉种")</option>
		                        	<option value="5">@Language.Get("豆种")</option>
		                        	<option value="6">@Language.Get("金丝种")</option>
		                        	<option value="7">@Language.Get("油青")</option>
		                        	<option value="8">@Language.Get("干青")</option>
							</select>
						</div>
						
							<div class="legend">@Language.Get("参数")：</div>
							<!--<div class="form-group CurrentUSD">
								<label for="OriginUSDPerGrain"><b class="start-red">*</b>采美金</label>
								<input type="number" class="form-control" maxlength="20" id="sourceUSDPerGrain" placeholder="原美金" name="OriginUSDPerGrain" readonly="readonly">
							</div>
							<div class="form-group CurrentUSD">
								<label for="BuyUSDPerGrain"><b class="start-red">*</b>买美金</label>
								<input type="number" class="form-control" maxlength="20" id="buyUSDPerGrain" placeholder="买美金" name="BuyUSDPerGrain" readonly="readonly">
							</div>
							<div class="form-group exchangeRate">
								<label for="PurchaseExchange">采汇</label>
								<input type="number" class="form-control" id="back_purchaseExchange" placeholder="采购汇率" name="PurchaseExchange">
							</div>-->
							<div class="form-group CurrentRMB">
								<label for="SourceRMBGrain"><b class="start-red">*</b>@Language.Get("采")RMB</label>
								<input type="number" class="form-control" id="sourceRMBGrain" placeholder="@Language.Get("原")RMB" name="SourceRMBGrain" readonly="readonly">
							</div>
							<div class="form-group CurrentRMB">
								<label for="BuyRMBGrain"><b class="start-red" class="start-red">*</b>@Language.Get("买")RMB</label>
								<input type="number" class="form-control" id="buyRMBGrain" placeholder="@Language.Get("买")RMB" name="BuyRMBGrain" readonly="readonly">
							</div>
                    
                    <div style="margin-top: 15px;"></div>
						<div class="form-radio" id="isStock">
							<label for="IsStock">@Language.Get("出售方式")</label>
							<span>
								<label for="_Stock">
									<input id="_Stock" type="radio" name="IsStock" value="1" checked="">@Language.Get("现货")
								</label>
								<label for="_Customized">
									<input id="_Customized" type="radio" name="IsStock" value="2">@Language.Get("定制")
								</label>							  	
							</span>
						</div>
						<div class="form-radio">
							<label>@Language.Get("上架状态")</label>
							<span id="onShelves">
								<label for="_onshelves">
									<input id="_onshelves" type="radio" name="OnShelves" value="1" checked="checked">@Language.Get("上架")
								</label>
								<label for="_offshelves">
									<input id="_offshelves" type="radio" name="OnShelves" value="0">@Language.Get("下架")
								</label>	
							</span>							
						</div>
						<div class="remarks-group">
                			<label for="Remark">@Language.Get("备注")</label>
                			<textarea id="remark" name="Remark" placeholder="@Language.Get("备注")" class="form-text remarks-control" cols="65"></textarea>
                		</div>

                    <div class="confirm">
	                    <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" name="q_x"  style="display: none;" />
	                    <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" />
	                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
                	</div>
                </form>
            </div>
        </div>
        <!-- 自留手动回库end -->
        
        <!-- 采购订单start --->
        <div class="popup modify_pop_box">
        <!--<div class="pop_box_bg modify_pop_box">-->
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>@Language.Get("采购订单")</h5>                
                 <form class="form-inline edit_form purchase_form" style="padding: 5px 5px 5px 30px;" method="post">
                    <div class="form-group" style="display: none">
                        <label for="OrderID">@Language.Get("订单号")：</label>
                        <input type="text" class="form-control" id="_orderID" placeholder="@Language.Get("订单号")" name="OrderID">
                    </div> 
                    <div class="form-group" style="display: none">
                        <label for="OrderStatus">@Language.Get("订单状态")：</label>
                        <input type="text" class="form-control" id="_orderStat" placeholder="@Language.Get("订单状态")" name="OrderStatus">  <!--11-3 采购和修改采购 -->
                    </div>

                    <div class="form-group">
                        <label for="OriginSN">@Language.Get("货号")：</label>
                        <input type="text" class="form-control" id="_purOriginSN" placeholder="@Language.Get("货号")" name="OriginSN">
                    </div>
                    <div class="form-group">
                        <label for="Category">@Language.Get("主石类型")：</label>
                        <input type="text" class="form-control" id="_purCategory" placeholder="@Language.Get("主石类型")" name="Category" disabled="disabled">
                    </div>
                    <div class="form-group">
                        <label for="Name">@Language.Get("名称")：</label>
                        <input type="text" class="form-control" id="_purName" placeholder="@Language.Get("名称")" name="Name">
                    </div>
                    <div class="form-group">
                        <label for="Type">@Language.Get("类型")：</label>
                        <select class="form-control" name="Type" id="_purType">
                            <option value="1">@Language.Get("手镯")</option>
                        	<option value="2">@Language.Get("挂件")</option>
                        	<option value="3">@Language.Get("裸石角料")</option>
                        	<option value="4">@Language.Get("摆件")</option>
                        	<option value="5">@Language.Get("个性")</option>
                        	<option value="6">@Language.Get("把件")</option>
                        	<option value="7">@Language.Get("原石")</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Type2">@Language.Get("类别细分")：</label>
                        <input type="text" class="form-control" id="_purType2" placeholder="@Language.Get("类别细分")" name="Type2">
                    </div>
                    
                    <div class="form-group color">
                        <label for="Color">@Language.Get("颜色")：</label>
                        <input type="text" class="form-control" id="_purColor" placeholder="@Language.Get("颜色")" name="Color">
                    </div> 
                    <div class="form-group">
                        <label for="CertType">@Language.Get("证书")：</label>
                        <input type="text" class="form-control" id="_purCertType" placeholder="@Language.Get("证书")" name="CertType">
                    </div>
                    <div class="form-group">
                        <label for="CertNo">@Language.Get("证书号")：</label>
                        <input type="text" class="form-control" id="_purCertNo" placeholder="@Language.Get("证书号")" name="CertNo" />
                    </div>
                    
                    <div class="form-group">
                        <label for="Texture">@Language.Get("种地")：</label>
                        <select class="form-control" name="Texture" id="_purTexture">
                            <option value="1">@Language.Get("冰种")</option>
                        	<option value="2">@Language.Get("玻璃种")</option>
                        	<option value="3">@Language.Get("冰糯种")</option>
                        	<option value="4">@Language.Get("芙蓉种")</option>
                        	<option value="5">@Language.Get("豆种")</option>
                        	<option value="6">@Language.Get("金丝种")</option>
                        	<option value="7">@Language.Get("油青")</option>
                        	<option value="8">@Language.Get("干青")</option>
                        </select>
                    </div>   
	                <!--<div class="form-group">
                        <label for="Weight">重量：</label>
                        <input type="number" class="form-control" id="_purWeight" placeholder="总重" name="Weight">
                    </div>      -->
                    <div class="form-group">
                        <label for="Measurement">@Language.Get("尺寸")：</label>
                        <input type="text" class="form-control" id="_purMeasurement" placeholder="@Language.Get("尺寸")" name="Measurement">
                    </div>
                    <div class="form-group">
                            <label for="Supplier">@Language.Get("供应商")：</label>
                            <input type="text" class="form-control" id="_purSupplier" placeholder="@Language.Get("供应商")" name="Supplier" />
                    </div>
                    <div class="form-group place">
                    	<label for="Place">@Language.Get("所在地")：</label>
                    	<input type="text" class="form-control" id="_purPlace" placeholder="@Language.Get("所在地")" name="Place">
                    </div>
                    
                    <div class="form-group PurexchangeRate">
		                        <label for="PurchaseExchange">@Language.Get("采汇")：</label>
		                        <input type="number" class="form-control" id="_purchaseExchange" placeholder="@Language.Get("采购汇率")" name="PurchaseExchange">
		                        <p class="purchase-tip" style="display: none;">@Language.Get("(采购汇率)")</p>
		            </div>
		            <div class="form-group PurCurrentUSD">
	                    <label for="PriceUSD"><b style="color:red;font-weight:bold;">*</b>@Language.Get("买")$：</label>
	                    <input type="text" class="form-control" id="_buyPriceUSD" placeholder="@Language.Get("买入美金总价")" name="BuyUSDPrice" />
	                </div> 
		            <div class="form-group PurCurrentRMB">
		                <label for="PurchaseRMB"><b style="color:red;font-weight:bold;">*</b>@Language.Get("买")￥：</label>
		                <input type="number" class="form-control" id="_buyPrice" placeholder="@Language.Get("以￥结算时请不要空")" name="BuyRMB">
		            </div>
		            <div class="form-group">
		                   <label for="DeliveryTime"><b style="color:red;font-weight:bold;">*</b>@Language.Get("发货日期")：</label>
		                    <input type="text" class="form-control time_input" id="_deliveryTime" placeholder="@Language.Get("发货日期")" name="DeliveryTime" />
		            </div> 
                    
                    <div class="form-group">
                        <label for="IsStock">@Language.Get("出售方式")：</label>
                        <select class="form-control" name="IsStock" id="_purIsStock">
                            <option value="">@Language.Get("出售方式")</option>
                            <option value="1">@Language.Get("现货")</option>
                            <option value="2">@Language.Get("定货")</option>
                        </select>
                    </div>
                  <div style="clear: both;"></div>  
                    <div class="remarks-group">
                        <label for="PurchaseRemarks" class="purchase-text" style="top: -20px;"><b style="color:red;font-weight:bold;">*</b>@Language.Get("采购备注")：</label>
                        <textarea id="_PurchasesRemarks" name="PurchaseRemarks" placeholder="@Language.Get("采购备注")" class="form-text" cols="65"></textarea>
                    </div>
                    <div class="confirm">
	                    <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" />
	                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" /> <!-- onclick="EditRingOrderInfo(this);" -->
                	</div>
               </form>
            </div>
        </div>
        <!-- 采购订单end --->  
        
        @*弹框end*@
        
		
		</div>
		</div>

    </body>

</html>
@Html.Partial("commonTeamJs")
<script type="text/javascript" src="~/Js/title_scroll/flexible.js"></script>
<script type="text/javascript" src="~/Js/title_scroll/iscroll.js"></script>
<script type="text/javascript" src="~/Js/title_scroll/navbarscroll.js"></script>
<script>
	var APP=is_app();
    //获取用户id，只能写在页面上，在外部的js没有用
    var PARAMS=@Html.Raw(ViewBag.Param);
    if(APP){
	 	PARAMS=eval('('+PARAMS+')');
	 }
</script>
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery-ui.min.js"></script>
<script src="~/Js/team/orderValidate.js?v=@Wholesaler.Common.Version.Get"></script>  <!--表单输入验证-->
<script src="~/Js/Team/commonOrder.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/Team/emeraldOrder.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>